package com.lzw.service.impl;

import com.lzw.bean.Role;
import com.lzw.mapper.RoleMapper;
import com.lzw.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @auther: lzw
 * @date: 2021/9/30 - 09 - 30 - 14:56
 * @Description: com.lzw.service.impl
 */

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Role getRole(Integer rid) {
        return roleMapper.getAuth(rid);
    }
}
